package com.sharer.last.model.dto.friend;

import com.sharer.last.base.model.BaseDTO;
import com.sharer.last.interfaces.ValidateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 友链 更新/创建
 *
 * @ClassName FriendChangeDTO
 * @Author wangjin
 * @Date 2023/06/17/17:08
 * @Description
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FriendChangeDTO extends BaseDTO {
    @NotNull(message = "id不能为空", groups = ValidateGroup.UpdateGroup.class)
    private Long id;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空")
    private String description;

    /**
     * 站点
     */
    @NotBlank(message = "站点网址不能为空")
    private String website;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空")
    private String avatar;

    /**
     * 公开或隐藏
     */
    private Integer isPublished;
}
